import axios from 'axios'

// create an axios instance
const service = axios.create({
  // 最终的路径：baseURL + api中 传入的url地址
  baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
  // withCredentials: true, // send cookies when cross-domain requests
  timeout: 5000 // request timeout
})

// request interceptor

// response interceptor

export default service
